STEP 8: Let's define another function! Remember, we want to call all of our functions at the bottom of the program.

  • Go to and drag out Define Function.
  • Drop the new function AFTER the headstand function and BEFORE the lines that call the functions.
  • Name the function sway.
  • Drop Turn Left INSIDE the sway function.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)